import java.awt.Insets;

import javax.swing.JFrame;


public class DotGame 
{
	private final int window_width=1920;
	private final int window_height=1080;
	private DotComponent dotGame;
	private JFrame frame;
	
	public DotGame()
	{
		dotGame = new DotComponent();
		setUpWindow();
		showWindow();
	}
	
	public void setUpWindow()
	{
		frame = new JFrame();
		frame.add(dotGame);
		frame.setTitle("Dot Game");
		frame.setResizable(false);
		frame.addMouseListener(dotGame);
	}
	
	public void showWindow()
	{
		dotGame.setSize(window_width, window_height);
		frame.pack();
		Insets insets = frame.getInsets(); 
		frame.setSize(window_width,window_height+insets.top);
		frame.setVisible(true);
		frame.repaint();
	}
	
	public static void main(String[] args)
	{
		DotGame game = new DotGame();
	}
}
